home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
allfiles
/
angry
/
intro.dir
/
00004_Script_dropz
< prev
next >
Wrap
Text File
|
1999-03-01
|
1KB
|
52 lines
property pSpr
property pFadeCount
property pActive
on new me, thisSpr
set pSpr = thisSpr
set pFadeCount = 20
return me
end
on drop me, underThis
set the loc of sprite(pSpr) to the loc of sprite(underThis)
if random(3) = 2 then
set the member of sprite(pSpr) to member "drop02"
set pFadeCount = 10
else
set the member of sprite(pSpr) to member "drop01"
end if
set pActive = TRUE
end
on check me
if pActive then set pFadeCount = pFadeCount - 1
if pFadeCount = 0 then
set the locH of sprite(pSpr) to 1000
set pFadeCount = 20
set the blend of sprite(pSpr) to 100
set pActive = FALSE
else if pFadeCount = 10 then
if the member of sprite(pSpr) = member "drop01" then
set the member of sprite(pSpr) = member "drop02"
end if
else if pFadeCount = 5 then
set the blend of sprite(pSpr) to 80
else if pFadeCount = 3 then
set the blend of sprite(pSpr) to 50
end if
end